<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="css/postMessage1.css" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/postMessage1.js"></script>
<title>postMessage1</title>
</head>

<body>
	<div id="container">
	
		<div id="navi_container">
			<!--这里是navigation的顶部栏-->
			<div id="navi_top">
				<div class="navi_left">${cityName}站</div>
				<div class="navi_left">网页版</div>
				
				<div class="navi_right">推广使用</div>
				
			<c:choose>
               <c:when test="${sessionScope.nickName==null}">
               <div class="navi_right"><a href="#">注册</a></div>
               <div class="navi_right"><a href="user/login_queryLoginPage.action">登录</a></div>
               </c:when>                 
          	  <c:otherwise>
          	  
          	  <div class="navi_right"><a  href="user/PersonSpace_queryMsgStore.action">我的收藏</a></div>
          	  <div class="navi_right"><a href="user/login_doLogout.action">注销</a></div>
          	  <div class="navi_right"><a target="right" href="user/PersonSpace_queryLabelMsg.action">欢迎${sessionScope.nickName}</a></div>
          	 </c:otherwise>
        	</c:choose>
        	
			</div>
			<!--这里是navigation的顶部栏-->
			
			
			
			<!--这里是navigation导航栏-->
			<div id="navigation">
			    <div id="logo"><a href="#"><img src="img/logo.png" width="220" height="70" border="0"/></a></div>
				
				<a href="index.action"><div class="navigator">首页</div></a>
				<c:forEach  var="catagory"  items="${list}"   varStatus="s">
				   <a href="user/publish_queryCataSecondList.action?catagoryId=${catagory.catagoryID}"><div class="navigator">${catagory.catagoryName}</div></a>
				</c:forEach>
			</div>
			<!--这里是navigation导航栏-->
			
		</div>
		
		<div id="step">
			<div class="step1">选择类目</div>
			<div class="step2">填写信息</div>
			<div class="step3">发布成功</div>
		</div>
		
	  	<div id="content">
			<div id="left">
				<ul style="list-style:none;">
				<li style="height:35px;"></li>
				<c:forEach  var="catagory"  items="${list}"  varStatus="s">
				   <li id="bigCategory" class="bigCat${s.index+1}">${catagory.catagoryName}</li>
				</c:forEach>
				<li style="height:35px;"></li>	
				</ul>
			</div>
			
			<c:forEach  var="catagory"  items="${list}"  varStatus="s">
			   <div id="right" class="cat${s.index+1}"  style="display:none">
				  <c:forEach  var="small"  items="${catagory.list}" >
				     <a href="user/publish_forPubSecondView.action?pubMsg.smallName=${small.smallName}&pubMsg.catagoryName=${catagory.catagoryName}&pubMsg.smallId=${small.smallID}">
				     <div id="smallCat">${small.smallName}</div></a>
				  </c:forEach>  
					
			</div>
			</c:forEach>
			
		</div>
		
		<div style=" width:100%;border-bottom:2px solid #6eb205"></div>
		<div id="footer">copyright &copy; 江西师范大学 Evan &amp; ZTS</div>
	</div>
</body>
</html>
